//载入那些函数库
let includes = ([
    "include/common.js",
]);

let inherits = ([
    "inherit/data.js",
]);

function create() {
    return thisObject;
}


function main(me, arg) {

    let exits, victim;
    if (arg == "") {
        tellObject(me, "你想杀谁？").to();
        return;
    }

    env = environment(me);
    if (!objectp(env)) {
        tellObject(me, "你现在所处的地方有点不正常").to();
        return;
    }

    // os.debug(arg,env,"debuger");
    victim = present(arg, env);

    if (!objectp(victim)) {
        tellObject(me, "你要杀的人不在这儿啊。").to();
        return;
    }

    switch (victim.acceptKill(me)) {
        case 1:
            me.killOb(victim)
            victim.killOb(me);
            break;
        default:
    }


    tellObject(me, `你要杀的人是${victim.get("name")}`).to();
    return;
}


